use cmd_runner::Parser;

fn main() {
    if let Some(path) = std::env::args().nth(1) {
        Parser::load(path).run();
    } else {
        print_info("0.0.2");
    }
}

fn print_info(version: &str) {
    println!("Runner {}", version);
    println!("");
    println!("A easy cmd runner for task dealing");
    println!("Just using `runner {{FILE}}` to start");
    println!("");
}
